import {http} from '../utils'
exports.getCompanyList = function (area,companyId) {
  return http({
    type:'get',
    url:`/Job/Company/List?area=${area}&companyId=${companyId}`,
  })
}
exports.getCompanyDetail = function (companyId) {
  return http({
    type:'get',
    url:`/Job/Company/Detail?id=${companyId}`,
  })
}

exports.reviseCompany = function (companyId, data) {
  return http({
    type:'put',
    url:`/Job/Company?id=${companyId}`,
    data: data
  })
}

exports.deleteCompany = function (companyId) {
  return http({
    type:'delete',
    url:`/Job/Company?id=${companyId}`,
  })
}


exports.getJobList = function (area, companyId) {
  return http({
    type:'get',
    url:`/Job/Job/List?area=${area}&companyId=${companyId}`,
  })
}

exports.addCompany = function (data) {
  return http({
    type:'post',
    url:`/Job/Company`,
    data: data
  })
}
exports.addJob = function (data) {
  return http({
    type:'post',
    url:`/Job/Job`,
    data: data
  })
}
exports.getJobDetail = function (id) {
  return http({
    type:'get',
    url:`/Job/Job/Detail?id=${id}`,
  })
}

exports.reviseJob = function (id,data) {
  return http({
    type:'put',
    url:`/Job/Job?id=${id}`,
    data: data
  })
}

exports.deleteJob = function (id) {
  return http({
    type:'delete',
    url:`/Job/Job?id=${id}`,
  })
}
